Siel\Acumulus\Invoice\Completor D

Total Complexity 308
Dependencies 18
Dependents 7
Total lines 1,949
Lines of code 898
Logical lines of code 576
Comment lines 799
Methods 51
Properties 17

Methods 51

Method Rating Maintainability Complexity Lines of code
getInvoiceLinesVatTypeInfo()
D
35 37 67
initPossibleVatRates()
C
36 26 75
initPossibleVatTypes()
B
40 19 61
processMetaData()
B
50 18 28
addMissingAmountLine()
B
39 15 62
guessVatType()
A
47 12 37
completeVatType()
A
42 11 52
areTotalsEqual()
A
47 12 36
checkEuCommerceThreshold()
A
47 10 31
getNature()
A
50 10 29
completeLineTotals()
A
46 9 41
correctNoVatLines()
A
54 9 19
validateEmail()
A
52 8 24
correctMarginInvoice()
A
56 8 17
completeVatTypeId()
S
60 8 13
shouldConvertCurrency()
S
54 7 21
getVatRatesByCountryAndInvoiceDate()
S
52 6 25
changeInvoiceToConcept()
S
54 5 20
fictitiousClient()
S
58 5 14
addWarning()
S
62 4 12
isNorthernIreland()
S
65 4 8
invoiceTemplate()
S
64 4 9
is0VatPossibleForVatType()
S
66 4 8
complete()
S
52 2 25
addDefault()
S
68 3 7
isVatFreeInvoice()
S
66 3 8
isFreeVatRate()
S
69 3 6
is0VatRate()
S
70 3 6
isVatFreeClass()
S
66 3 8
convertAmount()
S
67 3 7
metaDataHasOnlyNoVat()
S
66 3 9
metaDataHasANoVat()
S
66 3 9
isEu()
S
63 3 9
removeEmptyShipping()
S
64 3 9
isNoVat()
S
79 2 3
isCompany()
S
77 2 3
convertToEuro()
S
65 2 9
checkMissingAmount()
S
69 2 7
checkForKnownVatType()
S
66 2 8
getInvoiceDate()
S
72 2 5
is0VatClass()
S
66 2 8
isOutsideEu()
S
79 2 3
__construct()
S
62 1 12
t()
S
80 1 3
lineHasNoVat()
S
80 1 3
isEuVatClass()
S
72 1 5
usesEuVat()
S
72 1 5
is0VatVatTypePossible()
S
78 1 3
isCorrectVatRate()
S
79 1 3
isNl()
S
79 1 3
isUk()
S
77 1 3